#include <iostream>
#include <vector>

using namespace std;

void test()
{
    vector<int> vct1;
    vector<int> vct2(10);
    vector<int> vct3(10, 20);
    vector<int> vct4{1, 2, 3, 4, 5, 6, 7, 8, 9};
    vector<int> vct5(vct4.begin(), vct4.end() - 3);

    for(auto i : vct2)
    {
        cout << i << " ";
    }
    cout << endl;

    for(auto i : vct3)
    {
        cout << i << " ";
    }
    cout << endl;

    for(auto i : vct4)
    {
        cout << i << " ";
    }
    cout << endl;

    for(auto i : vct5)
    {
        cout << i << " ";
    }
    cout << endl;
}

void test1()
{
    vector<int> numbers;
    cout << numbers.size() << endl;
    cout << numbers.capacity() << endl;

    numbers.push_back(1);
    cout << numbers.size() << endl;
    cout << numbers.capacity() << endl;

    numbers.push_back(1);
    cout << numbers.size() << endl;
    cout << numbers.capacity() << endl;

    numbers.push_back(1);
    cout << numbers.size() << endl;
    cout << numbers.capacity() << endl;
}

int main()
{
    test();
    test1();
    return 0;
}

